/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.lucava.boatskeeper.client.service;

import com.google.gwt.user.client.rpc.AsyncCallback;
import java.util.List;
import org.lucava.boatskeeper.shared.dto.RoleDto;

/**
 *
 * @author glenn
 */
public interface RoleServiceAsync {

    public void getRoles(AsyncCallback<List<RoleDto>> callback);

    public void getRole(Integer id, AsyncCallback<RoleDto> callback);

    public void saveRole(RoleDto role, AsyncCallback<Boolean> callback);

    public void removeRole(RoleDto role, AsyncCallback<Boolean> callback);

    public void removeRoles(List<Integer> ids, AsyncCallback<Boolean> callback);
}
